class Student:
    name = "Student"

    def __init__(self, name):
        self.name = name


try:
    s = None
    if s is None:
        raise NameError
        print("if in")
    print("if out")
except TypeError:
    print("空对象")

